﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Portal
{
    public static class DecimalExtension
    {
        /// <summary>
        /// 0.##Format
        /// </summary>
        /// <returns></returns>
        public static string ToDefaultFormat(this decimal value)
        {
            return string.Format("{0:0}", value);
        }
        /// <summary>
        /// 0.##Format
        /// </summary>
        /// <returns></returns>
        public static string ToDefaultFormat(this decimal? value)
        {
            return string.Format("{0:0}", value);
        }


    }
}
